<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="logging_v2.html">Cloud Logging API</a> . <a href="logging_v2.projects.html">projects</a> . <a href="logging_v2.projects.locations.html">locations</a> . <a href="logging_v2.projects.locations.savedQueries.html">savedQueries</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#create">create(parent, body=None, savedQueryId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a new SavedQuery for the user making the request.</p>
<p class="toc_element">
  <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes an existing SavedQuery that was created by the user making the request.</p>
<p class="toc_element">
  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Returns all data associated with the requested query.</p>
<p class="toc_element">
  <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists the SavedQueries that were created by the user making the request.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates an existing SavedQuery.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="create">create(parent, body=None, savedQueryId=None, x__xgafv=None)</code>
  <pre>Creates a new SavedQuery for the user making the request.

Args:
  parent: string, Required. The parent resource in which to create the saved query: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]&quot; &quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]&quot; For example: &quot;projects/my-project/locations/global&quot; &quot;organizations/123456789/locations/us-central1&quot;  (required)
  body: object, The request body.
    The object takes the form of:

{ # Describes a query that has been saved by a user.
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was created.
  &quot;description&quot;: &quot;A String&quot;, # Optional. A human readable description of the saved query.
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The user specified title for the SavedQuery.
  &quot;loggingQuery&quot;: { # Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results. # Logging query that can be executed in Logs Explorer or via Logging API.
    &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters.
    &quot;summaryFieldEnd&quot;: 42, # Characters will be counted from the end of the string.
    &quot;summaryFieldStart&quot;: 42, # Characters will be counted from the start of the string.
    &quot;summaryFields&quot;: [ # Optional. The set of summary fields to display for this saved query.
      { # A field from the LogEntry that is added to the summary line (https://cloud.google.com/logging/docs/view/logs-explorer-interface#add-summary-fields) for a query in the Logs Explorer.
        &quot;field&quot;: &quot;A String&quot;, # Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name.
      },
    ],
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the saved query.In the format: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn&#x27;t provide a QUERY_ID, the system will generate an alphanumeric ID.
  &quot;opsAnalyticsQuery&quot;: { # Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.Preview: This is a preview feature and may be subject to change before final release. # Analytics query that can be executed in Log Analytics.
    &quot;sqlQueryText&quot;: &quot;A String&quot;, # Required. A logs analytics SQL query, which generally follows BigQuery format.This is the SQL query that appears in the Log Analytics UI&#x27;s query editor.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was last updated.
  &quot;visibility&quot;: &quot;A String&quot;, # Required. The visibility status of this query, which determines its ownership.
}

  savedQueryId: string, Optional. The ID to use for the saved query, which will become the final component of the saved query&#x27;s resource name.If the saved_query_id is not provided, the system will generate an alphanumeric ID.The saved_query_id is limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, periods.First character has to be alphanumeric.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Describes a query that has been saved by a user.
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was created.
  &quot;description&quot;: &quot;A String&quot;, # Optional. A human readable description of the saved query.
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The user specified title for the SavedQuery.
  &quot;loggingQuery&quot;: { # Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results. # Logging query that can be executed in Logs Explorer or via Logging API.
    &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters.
    &quot;summaryFieldEnd&quot;: 42, # Characters will be counted from the end of the string.
    &quot;summaryFieldStart&quot;: 42, # Characters will be counted from the start of the string.
    &quot;summaryFields&quot;: [ # Optional. The set of summary fields to display for this saved query.
      { # A field from the LogEntry that is added to the summary line (https://cloud.google.com/logging/docs/view/logs-explorer-interface#add-summary-fields) for a query in the Logs Explorer.
        &quot;field&quot;: &quot;A String&quot;, # Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name.
      },
    ],
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the saved query.In the format: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn&#x27;t provide a QUERY_ID, the system will generate an alphanumeric ID.
  &quot;opsAnalyticsQuery&quot;: { # Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.Preview: This is a preview feature and may be subject to change before final release. # Analytics query that can be executed in Log Analytics.
    &quot;sqlQueryText&quot;: &quot;A String&quot;, # Required. A logs analytics SQL query, which generally follows BigQuery format.This is the SQL query that appears in the Log Analytics UI&#x27;s query editor.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was last updated.
  &quot;visibility&quot;: &quot;A String&quot;, # Required. The visibility status of this query, which determines its ownership.
}</pre>
</div>

<div class="method">
    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
  <pre>Deletes an existing SavedQuery that was created by the user making the request.

Args:
  name: string, Required. The full resource name of the saved query to delete. &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; &quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; For example: &quot;projects/my-project/locations/global/savedQueries/my-saved-query&quot;  (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}</pre>
</div>

<div class="method">
    <code class="details" id="get">get(name, x__xgafv=None)</code>
  <pre>Returns all data associated with the requested query.

Args:
  name: string, Required. The resource name of the saved query. &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; &quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; For example: &quot;projects/my-project/locations/global/savedQueries/my-saved-query&quot;  (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Describes a query that has been saved by a user.
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was created.
  &quot;description&quot;: &quot;A String&quot;, # Optional. A human readable description of the saved query.
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The user specified title for the SavedQuery.
  &quot;loggingQuery&quot;: { # Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results. # Logging query that can be executed in Logs Explorer or via Logging API.
    &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters.
    &quot;summaryFieldEnd&quot;: 42, # Characters will be counted from the end of the string.
    &quot;summaryFieldStart&quot;: 42, # Characters will be counted from the start of the string.
    &quot;summaryFields&quot;: [ # Optional. The set of summary fields to display for this saved query.
      { # A field from the LogEntry that is added to the summary line (https://cloud.google.com/logging/docs/view/logs-explorer-interface#add-summary-fields) for a query in the Logs Explorer.
        &quot;field&quot;: &quot;A String&quot;, # Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name.
      },
    ],
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the saved query.In the format: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn&#x27;t provide a QUERY_ID, the system will generate an alphanumeric ID.
  &quot;opsAnalyticsQuery&quot;: { # Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.Preview: This is a preview feature and may be subject to change before final release. # Analytics query that can be executed in Log Analytics.
    &quot;sqlQueryText&quot;: &quot;A String&quot;, # Required. A logs analytics SQL query, which generally follows BigQuery format.This is the SQL query that appears in the Log Analytics UI&#x27;s query editor.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was last updated.
  &quot;visibility&quot;: &quot;A String&quot;, # Required. The visibility status of this query, which determines its ownership.
}</pre>
</div>

<div class="method">
    <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
  <pre>Lists the SavedQueries that were created by the user making the request.

Args:
  parent: string, Required. The resource to which the listed queries belong. &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot; &quot;organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]&quot; &quot;billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]&quot; &quot;folders/[FOLDER_ID]/locations/[LOCATION_ID]&quot; For example: &quot;projects/my-project/locations/us-central1&quot; Note: The locations portion of the resource must be specified. To get a list of all saved queries, a wildcard character - can be used for LOCATION_ID, for example: &quot;projects/my-project/locations/-&quot;  (required)
  filter: string, Optional. Specifies the type (&quot;Logging&quot; or &quot;OpsAnalytics&quot;) and the visibility (PRIVATE or SHARED) of the saved queries to list. If provided, the filter must contain either the type function or a visibility token, or both. If both are chosen, they can be placed in any order, but they must be joined by the AND operator or the empty character.The two supported type function calls are: type(&quot;Logging&quot;) type(&quot;OpsAnalytics&quot;)The two supported visibility tokens are: visibility = PRIVATE visibility = SHAREDFor example:type(&quot;Logging&quot;) AND visibility = PRIVATE visibility=SHARED type(&quot;OpsAnalytics&quot;) type(&quot;OpsAnalytics)&quot; visibility = PRIVATE visibility = SHARED
  pageSize: integer, Optional. The maximum number of results to return from this request.Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.
  pageToken: string, Optional. If present, then retrieve the next batch of results from the preceding call to this method. pageToken must be the value of nextPageToken from the previous response. The values of other method parameters should be identical to those in the previous call.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response from ListSavedQueries.
  &quot;nextPageToken&quot;: &quot;A String&quot;, # If there might be more results than appear in this response, then nextPageToken is included. To get the next set of results, call the same method again using the value of nextPageToken as pageToken.
  &quot;savedQueries&quot;: [ # A list of saved queries.
    { # Describes a query that has been saved by a user.
      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was created.
      &quot;description&quot;: &quot;A String&quot;, # Optional. A human readable description of the saved query.
      &quot;displayName&quot;: &quot;A String&quot;, # Required. The user specified title for the SavedQuery.
      &quot;loggingQuery&quot;: { # Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results. # Logging query that can be executed in Logs Explorer or via Logging API.
        &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters.
        &quot;summaryFieldEnd&quot;: 42, # Characters will be counted from the end of the string.
        &quot;summaryFieldStart&quot;: 42, # Characters will be counted from the start of the string.
        &quot;summaryFields&quot;: [ # Optional. The set of summary fields to display for this saved query.
          { # A field from the LogEntry that is added to the summary line (https://cloud.google.com/logging/docs/view/logs-explorer-interface#add-summary-fields) for a query in the Logs Explorer.
            &quot;field&quot;: &quot;A String&quot;, # Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name.
          },
        ],
      },
      &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the saved query.In the format: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn&#x27;t provide a QUERY_ID, the system will generate an alphanumeric ID.
      &quot;opsAnalyticsQuery&quot;: { # Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.Preview: This is a preview feature and may be subject to change before final release. # Analytics query that can be executed in Log Analytics.
        &quot;sqlQueryText&quot;: &quot;A String&quot;, # Required. A logs analytics SQL query, which generally follows BigQuery format.This is the SQL query that appears in the Log Analytics UI&#x27;s query editor.
      },
      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was last updated.
      &quot;visibility&quot;: &quot;A String&quot;, # Required. The visibility status of this query, which determines its ownership.
    },
  ],
  &quot;unreachable&quot;: [ # The unreachable resources. It can be either 1) a saved query if a specific query is unreachable or 2) a location if a specific location is unreachabe. &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]&quot; For example: &quot;projects/my-project/locations/global/savedQueries/12345678&quot; &quot;projects/my-project/locations/global&quot; If there are unreachable resources, the response will first return pages that contain saved queries, and then return pages that contain the unreachable resources.
    &quot;A String&quot;,
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates an existing SavedQuery.

Args:
  name: string, Output only. Resource name of the saved query.In the format: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn&#x27;t provide a QUERY_ID, the system will generate an alphanumeric ID. (required)
  body: object, The request body.
    The object takes the form of:

{ # Describes a query that has been saved by a user.
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was created.
  &quot;description&quot;: &quot;A String&quot;, # Optional. A human readable description of the saved query.
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The user specified title for the SavedQuery.
  &quot;loggingQuery&quot;: { # Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results. # Logging query that can be executed in Logs Explorer or via Logging API.
    &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters.
    &quot;summaryFieldEnd&quot;: 42, # Characters will be counted from the end of the string.
    &quot;summaryFieldStart&quot;: 42, # Characters will be counted from the start of the string.
    &quot;summaryFields&quot;: [ # Optional. The set of summary fields to display for this saved query.
      { # A field from the LogEntry that is added to the summary line (https://cloud.google.com/logging/docs/view/logs-explorer-interface#add-summary-fields) for a query in the Logs Explorer.
        &quot;field&quot;: &quot;A String&quot;, # Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name.
      },
    ],
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the saved query.In the format: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn&#x27;t provide a QUERY_ID, the system will generate an alphanumeric ID.
  &quot;opsAnalyticsQuery&quot;: { # Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.Preview: This is a preview feature and may be subject to change before final release. # Analytics query that can be executed in Log Analytics.
    &quot;sqlQueryText&quot;: &quot;A String&quot;, # Required. A logs analytics SQL query, which generally follows BigQuery format.This is the SQL query that appears in the Log Analytics UI&#x27;s query editor.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was last updated.
  &quot;visibility&quot;: &quot;A String&quot;, # Required. The visibility status of this query, which determines its ownership.
}

  updateMask: string, Required. A non-empty list of fields to change in the existing saved query. Fields are relative to the saved_query and new values for the fields are taken from the corresponding fields in the SavedQuery included in this request. Fields not mentioned in update_mask are not changed and are ignored in the request.To update all mutable fields, specify an update_mask of *.For example, to change the description and query filter text of a saved query, specify an update_mask of &quot;description, query.filter&quot;.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Describes a query that has been saved by a user.
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was created.
  &quot;description&quot;: &quot;A String&quot;, # Optional. A human readable description of the saved query.
  &quot;displayName&quot;: &quot;A String&quot;, # Required. The user specified title for the SavedQuery.
  &quot;loggingQuery&quot;: { # Describes a Cloud Logging query that can be run in Logs Explorer UI or via the logging API.In addition to the query itself, additional information may be stored to capture the display configuration and other UI state used in association with analysis of query results. # Logging query that can be executed in Logs Explorer or via Logging API.
    &quot;filter&quot;: &quot;A String&quot;, # Required. An advanced query using the Logging Query Language (https://cloud.google.com/logging/docs/view/logging-query-language). The maximum length of the filter is 20000 characters.
    &quot;summaryFieldEnd&quot;: 42, # Characters will be counted from the end of the string.
    &quot;summaryFieldStart&quot;: 42, # Characters will be counted from the start of the string.
    &quot;summaryFields&quot;: [ # Optional. The set of summary fields to display for this saved query.
      { # A field from the LogEntry that is added to the summary line (https://cloud.google.com/logging/docs/view/logs-explorer-interface#add-summary-fields) for a query in the Logs Explorer.
        &quot;field&quot;: &quot;A String&quot;, # Optional. The field from the LogEntry to include in the summary line, for example resource.type or jsonPayload.name.
      },
    ],
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Resource name of the saved query.In the format: &quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]&quot; For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn&#x27;t provide a QUERY_ID, the system will generate an alphanumeric ID.
  &quot;opsAnalyticsQuery&quot;: { # Describes an analytics query that can be run in the Log Analytics page of Google Cloud console.Preview: This is a preview feature and may be subject to change before final release. # Analytics query that can be executed in Log Analytics.
    &quot;sqlQueryText&quot;: &quot;A String&quot;, # Required. A logs analytics SQL query, which generally follows BigQuery format.This is the SQL query that appears in the Log Analytics UI&#x27;s query editor.
  },
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The timestamp when the saved query was last updated.
  &quot;visibility&quot;: &quot;A String&quot;, # Required. The visibility status of this query, which determines its ownership.
}</pre>
</div>

</body></html>